package com.jiage.toolutil.utils;

/**
 * 图片类型转util
 */
public class SDMimeTypeUtil {

    public static String getMimeType(String extString) {
        String mimeType = null;
        if ("jpg".equalsIgnoreCase(extString)) {
            mimeType = "image/jpeg";
        } else if ("jpe".equalsIgnoreCase(extString)) {
            mimeType = "image/jpeg";
        } else if ("jpeg".equalsIgnoreCase(extString)) {
            mimeType = "image/jpeg";
        } else if ("png".equalsIgnoreCase(extString)) {
            mimeType = "image/png";
        } else if ("gif".equalsIgnoreCase(extString)) {
            mimeType = "image/gif";
        } else {

        }
        return mimeType;
    }

}
